package com.example.springbootexample

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@SpringBootApplication
@RestController
class SpringbootExampleApplication {

    @RequestMapping("/")
    fun test(): Any {
        return "springboot测试成功了"
    }

}

fun main(args: Array<String>) {
    runApplication<SpringbootExampleApplication>(*args)

}
